function tryCreatePaths(current_p, class_p) {
	//TODO check paths
	//TODO different slash under Linux and Windows
	this.current_path = current_p;
	this.class_path = class_p;
	this.paths = class_p.split(";");
	this.paths.push(current_p);
	
	this.addPath = function(path) {
		for (var i = this.paths.length - 1; i >= 0; --i) if (this.paths[i] == path) return;
		this.paths.push(path);
	}
	
	this.clearPath = function(path) {
		this.paths = new Array();
	}
	
	//remove duplicate
	var len = this.paths.length;
	var i = 0;
	for (var j = 0; j < len; ++j) if (this.paths[i] != null && this.paths[i] != "") {
		var same = false;
		for (var k = 0; k < j; ++k) if (this.paths[k] == this.paths[j]) {
			same = true;
			break;
		}
		if (!same) 
			this.path[i++] = this.path[j];
	}
	while (len-- > i) this.paths.pop();
	
	//alert("paths.length: " + this.paths.length);
	//for (var i = 0; i < this.paths.length; ++i) alert(i + ": " + this.paths[i]);
}
